//
//  TJSP.m
//  HuateVideo
//
//  Created by Tiger on 12-7-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "TJSP.h"

@implementation TJSP
@synthesize detailType;
@synthesize News_id;
@synthesize OrderNUM;
@synthesize News_title;
@synthesize Type;
@synthesize News_pic;
@synthesize News_keyword;
@synthesize News_host_node_id;
@synthesize File_id;
@synthesize File_alias;
@synthesize Display_order;
@synthesize File_path;
@synthesize iconImg;
@synthesize isImageLoading;

- (id)initWithCoder:(NSCoder *)decoder {
    self = [super init];
    if(self) {
        self.detailType=[decoder decodeIntegerForKey:@"detailType"];
        self.News_id = [decoder decodeObjectForKey:@"News_id"];
        self.OrderNUM = [decoder decodeIntForKey:@"OrderNUM"];
        self.News_title = [decoder decodeObjectForKey:@"News_title"];
        self.Type = [decoder decodeObjectForKey:@"Type"];
        self.News_pic = [decoder decodeObjectForKey:@"News_pic"];
        self.News_keyword = [decoder decodeObjectForKey:@"News_keyword"];
        self.News_host_node_id = [decoder decodeObjectForKey:@"News_host_node_id"];
        self.File_id = [decoder decodeObjectForKey:@"File_id"];
        self.File_alias = [decoder decodeObjectForKey:@"File_alias"];
        self.Display_order = [decoder decodeObjectForKey:@"Display_order"];
        self.File_path = [decoder decodeObjectForKey:@"File_path"];
        self.iconImg = [decoder decodeObjectForKey:@"iconImg"];
        self.isImageLoading = [decoder decodeBoolForKey:@"isImageLoading"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)encoder {
    [encoder encodeInteger:detailType forKey:@"detailType"];
    [encoder encodeObject:self.News_id forKey:@"News_id"];
    [encoder encodeInt:self.OrderNUM forKey:@"OrderNUM"];
    [encoder encodeObject:self.News_title forKey:@"News_title"];
    [encoder encodeObject:self.Type forKey:@"Type"];
    [encoder encodeObject:self.News_pic forKey:@"News_pic"];
    [encoder encodeObject:self.News_keyword forKey:@"News_keyword"];
    [encoder encodeObject:self.News_host_node_id forKey:@"News_host_node_id"];
    [encoder encodeObject:self.File_id forKey:@"File_id"];
    [encoder encodeObject:self.File_alias forKey:@"File_alias"];
    [encoder encodeObject:self.Display_order forKey:@"Display_order"];
    [encoder encodeObject:self.File_path forKey:@"File_path"];
    [encoder encodeObject:self.iconImg forKey:@"iconImg"];
    [encoder encodeBool:self.isImageLoading forKey:@"isImageLoading"];
}

-(void)dealloc{
    self.News_id = nil;
    self.News_title = nil;
    self.Type = nil;
    self.News_pic = nil;
    self.News_keyword = nil;
    self.News_host_node_id = nil;
    self.File_id = nil;
    self.File_alias = nil;
    self.Display_order = nil;
    self.File_path = nil;
    self.iconImg = nil;
    [super dealloc];
}

@end
